//-----------------------------------------------------------------------
// <copyright file="UserBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace APPro.Entities
{
	[Serializable]
	public class UserBase
	{
		
		#region Variable Declarations
		private string				mobile = string.Empty;
		private string				password = string.Empty;
		private string				email = string.Empty;
		private string				ten = string.Empty;
		private string				ho = string.Empty;
		private DateTime				ngSinh = new DateTime(1900,1,1,0,0,0,0);
		private string				phai = string.Empty;
		private string				dChi = string.Empty;
		private bool				nhanMail = false;
		private bool				nhanSMS = false;
		private int				thanhPho = 0;
		private int				quan = 0;
		private int				ngonNgu = 0;
		private string				nguoiGioiThieu = string.Empty;
		private string				maSoCaNhan = string.Empty;
		#endregion
		
		#region Constructors
		public UserBase() {}
		
		public UserBase (
			string mobile,
			string password,
			string email,
			string ten,
			string ho,
			DateTime ngSinh,
			string phai,
			string dChi,
			bool nhanMail,
			bool nhanSMS,
			int thanhPho,
			int quan,
			int ngonNgu,
			string nguoiGioiThieu,
			string maSoCaNhan)
		
		{
			this.mobile = mobile;
			this.password = password;
			this.email = email;
			this.ten = ten;
			this.ho = ho;
			this.ngSinh = ngSinh;
			this.phai = phai;
			this.dChi = dChi;
			this.nhanMail = nhanMail;
			this.nhanSMS = nhanSMS;
			this.thanhPho = thanhPho;
			this.quan = quan;
			this.ngonNgu = ngonNgu;
			this.nguoiGioiThieu = nguoiGioiThieu;
			this.maSoCaNhan = maSoCaNhan;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Mobile
		{
			get { return mobile; }
			set { mobile = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Password
		{
			get { return password; }
			set { password = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nchar</value>
		public string Email
		{
			get { return email; }
			set { email = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Ten
		{
			get { return ten; }
			set { ten = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Ho
		{
			get { return ho; }
			set { ho = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is smalldatetime</value>
		public DateTime NgSinh
		{
			get { return ngSinh; }
			set { ngSinh = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Phai
		{
			get { return phai; }
			set { phai = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string DChi
		{
			get { return dChi; }
			set { dChi = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool NhanMail
		{
			get { return nhanMail; }
			set { nhanMail = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool NhanSMS
		{
			get { return nhanSMS; }
			set { nhanSMS = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ThanhPho
		{
			get { return thanhPho; }
			set { thanhPho = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Quan
		{
			get { return quan; }
			set { quan = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int NgonNgu
		{
			get { return ngonNgu; }
			set { ngonNgu = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string NguoiGioiThieu
		{
			get { return nguoiGioiThieu; }
			set { nguoiGioiThieu = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string MaSoCaNhan
		{
			get { return maSoCaNhan; }
			set { maSoCaNhan = value; }
		}
		
		#endregion
	}//End Class
	
	public enum UserColumns
	{
		Mobile,
		Password,
		Email,
		Ten,
		Ho,
		NgSinh,
		Phai,
		DChi,
		NhanMail,
		NhanSMS,
		ThanhPho,
		Quan,
		NgonNgu,
		NguoiGioiThieu,
		MaSoCaNhan
	}//End enum
}